package per.zqx.rabbit.service.ttl;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * TtlFanoutSmsCustomer,
 *
 * @author Sa, Zhang 2021-06-06 19:37
 */
@Service
@RabbitListener(queues = "dead.fanout.queue")
public class DeadFanoutMsgCustomer {
    @RabbitHandler
    public void receiveMassage(String message) {
        System.out.println("收到一条死信 -> " + message);
    }
}
